IF NOT EXISTS (select * from dbo.syscolumns where id = object_id(N'[dbo].[Templates]') AND Name = 'DefaultRegionId' )
	ALTER TABLE [dbo].Templates ADD [DefaultRegionId] int null
go